<!-- 故障管理 -->
<template>
  <el-container>
    <el-header style="height: 50px">
      <diV class="headerchildbox">
        <h3>项目</h3>
        <el-select v-model="test" placeholder="ABC综合体项目">
          <el-option label="ABC综合体项目" :value="test"> </el-option>
        </el-select>
        <div class="line"></div>
        <h3>故障管理</h3>
      </diV>
      <div class="topright">
        <Weather></Weather>
        <Date> </Date>
      </div>
    </el-header>
    <el-container style="background-color: rgb(217, 236, 255)">
      <el-aside style="width: 260px">
        <h4>消防子系统类型</h4>
        <div class="letBoxdown">
          <div class="leftpic">
            <img src="../../assets/libiao.jpg" alt="" />
          </div>
          <el-aside width="200px">
            <el-menu
              default-active="/fault/allequipment"
              class="el-menu-vertical-demo"
              active-text-color="#409EFF"
              :router="true"
            >
              <el-menu-item index="/fault/allequipment">
                <span slot="title">全部设备系统</span>
              </el-menu-item>
              <el-menu-item index="/fault/firequipment">
                <span slot="title">火灾监测报警系统</span>
              </el-menu-item>
              <el-menu-item index="/fault/water">
                <span slot="title">消防水监测系统</span>
              </el-menu-item>
              <el-menu-item index="/fault/door">
                <span slot="title">室外消防栓系统</span>
              </el-menu-item>
              <el-menu-item index="/fault/safe">
                <span slot="title">智慧安全用电系统</span>
              </el-menu-item>
              <el-menu-item index="/fault/video">
                <span slot="title">视频监控系统</span>
              </el-menu-item>
            </el-menu>
          </el-aside>
        </div>
      </el-aside>
      <el-main>
        <div class="maintop"></div>
        <!-- 数据 -->
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import Weather from "../fault/Weather.vue";
import Date from "../fault/Date.vue";
export default {
  components: { Weather, Date },
  data: function () {
    return {
      test: "",
    };
  },
  methods: {},
  created: function () {},
  mounted: function () {},
};
</script>

<style lang="less" scoped>
.el-main {
  height: 100%;
  padding: 18px 10px;
  .maintop {
    display: flex;
    justify-content: space-between;
  }
}
.el-container {
  width: 100%;
  height: 100%;
}
.el-aside {
  margin-top: 18px;
  margin-bottom: 10px;
  background-color: white;
  h4 {
    background-color: #f2f2f2;
    padding: 10px 80px 10px 0;
    border-bottom: 1px solid rgb(224, 223, 223);
  }
  .letBoxdown {
    width: 80%;
    margin-top: 20px;
    margin-left: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    .leftpic {
      margin-top: 11px;
    }
    .el-aside {
      .el-menu {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-left: -10px;
        list-style: none;
        margin-top: -20px;
        border: none;
      }
      .el-menu-item {
        font-size: 14px;
        height: 50px;
      }
      .el-menu-item:hover {
        background-color: white;
      }
      .el-menu-item.is-active {
        background-color: white !important;
      }
    }
  }
}
.el-header {
  width: 100%;
  background-color: #3b414a;
  display: flex;
  justify-content: space-between;
  .headerchildbox {
    width: 400px;
    height: 100%;
    // outline: 1px solid red;
    margin-left: 30px;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    .line {
      background-color: white;
      height: 30px;
      width: 3px;
    }
  }
  .topright {
    color: white;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}
</style>
